<?php
$kw = $_GET['kw'];
$apikey = $_GET['apikey'];
$uri = $_GET['uri'];
$host = $_GET['host'];
$url = $host.$uri.'?apikey='.$apikey.'&kw='.$kw;
if(empty($uri)){
    $url='http://120.76.205.241:8000/liveroom/bilibili?apikey=CURuPgwUwNYK223PjWSMr9q16bPoaPOX8NTY6MnOLKaz6QLE0Ye0gqYNGcZE1OF0&kw=lol';
}
$method = "GET";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$output = curl_exec($curl);
if (curl_errno($curl)) {
    echo 'Errno'.curl_error($curl);
}
echo $output;
curl_close($output);
//var_dump(curl_error($curl));